﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Masterpages/Default.Master" AutoEventWireup="true" CodeBehind="Category.aspx.cs" Inherits="Blazing.WebShop.Category" %>

<%@ Register src="UserControls/ShoppingCart.ascx" tagname="ShoppingCart" tagprefix="uc1" %>
<%@ Register src="UserControls/DisplayTagCategories.ascx" tagname="DisplayTagCategories" tagprefix="uc2" %>
<%@ Register src="UserControls/ProductImage.ascx" tagname="ProductImage" tagprefix="uc3" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolderMain" runat="server">
    <cms:CmsManager ID="CmsManager1" runat="server" />
    <h2>Browse Products</h2>
    <h3>Search terms: 
        <asp:Repeater ID="RepeaterTags" runat="server">
        <ItemTemplate>
        <%# Eval("Tag.Name") %>
        </ItemTemplate>
        <SeparatorTemplate>
        , </SeparatorTemplate>
        </asp:Repeater>
    </h3><br />
        
    <asp:GridView ID="GridViewProducts" runat="server" AutoGenerateColumns="False" 
        DataKeyNames="ID" PageSize="15" Width="90%" RowStyle-CssClass="odd" AlternatingRowStyle-CssClass="even">
        <Columns>
        <asp:TemplateField ShowHeader="False">
                <ItemTemplate>
                   <uc3:ProductImage ID="ProductImage1" runat="server" ProductFor='<%# Eval("ProductItem") %>' TagSlugs="hero,thumbnail" />
                </ItemTemplate>
                <ItemStyle HorizontalAlign="Center" />
            </asp:TemplateField>
            <asp:BoundField DataField="Name" HeaderText="Name" SortExpression="Name" />
            <asp:BoundField DataField="Price" HeaderText="Price ($)" DataFormatString="{0:0.00}" SortExpression="Price">
            <ItemStyle HorizontalAlign="Right" />
            </asp:BoundField>
            <asp:TemplateField ShowHeader="False">
                <ItemTemplate>
                    <a href='<%# Eval("Url.Url") %>'>View</a>
                </ItemTemplate>
                <ItemStyle HorizontalAlign="Center" />
            </asp:TemplateField>
        </Columns>
    </asp:GridView>
    
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolderSideBar" runat="server">

<div class="box"><cms:WidgetRegionControl ID="WidgetRegionControlRight" RegionId="1" runat="server" /></div>

<!-- box -->
<div class="sidebar-nav box">
    <h3>Shopping Cart</h3>  
    <uc1:ShoppingCart ID="ShoppingCart1" runat="server" />
    <br />
    <div style="vertical-align:middle;display:block;">
    <a id="A1" href="~/MyCart.aspx" runat="server" style="padding:3px 0 0 5px"><img id="Img1" src="~/App_Themes/Simply/store/Orders.gif" runat="server" alt="Cart" style="display:inline;float:left" /> View Cart</a>
    </div>
</div>
<!-- / box -->

<div class="sidebar-nav box">
    <h3>Our Categories</h3>
    <uc2:DisplayTagCategories ID="DisplayTagCategories1" runat="server" TaxonomyID="2" />
</div>
<!-- / box -->

</asp:Content>
